package com.imooc.sell.exception;

import com.imooc.sell.enmus.ResultEnum;

/**
 * Description:
 *
 * @author zzy
 * @create 2017-09-08 11:09
 */
public class SellException extends RuntimeException {
    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }


    public SellException(Integer code, String defaultMessage) {
        super(defaultMessage);
        this.code = code;
    }
}